import Layout from '@/layout/index'

export default function pushPlat(rs) {
  if (!rs) {
    rs = []
  }
  rs.push({
    path: '/',
    component: Layout,
    name: '智能化管理',
    redirect: '/smtManager',
    meta: {
      title: '',
      icon: 'nested'
    },
    children: [
     {   name: "smtType",
       path: "/smtType",
       meta: {
         title: "设备类型管理",
         breadcrumb: []
       },
       component: () => import( '@/views/smt/smtType/typeList.vue' )
  }, {
    name: "smtModel",
    path: "/smtModel",
    meta: {
      title: "设备型号管理",
      breadcrumb: []
    },
    component: () => import( '@/views/smt/smtModel/modelList.vue' )
    },{
    name: "smtManage",
      path: "/smtManage",
      meta: {
      title: "设备管理",
        breadcrumb: []
    },
    component: () => import( '@/views/smt/smtManage/smtList.vue' )
  },{
    name: "attr",
      path: "/attr",
      meta: {
      title: "事件属性",
        breadcrumb: []
    },
    component: () => import( '@/views/smt/attr/attrList.vue' )
  },{
    name: "enty",
      path: "/enty",
      meta: {
      title: "事件实体",
        breadcrumb: []
    },
    component: () => import( '@/views/smt/enty/entyList.vue' )
  },{
    name: "entyAttr",
      path: "/entyAttr",
      meta: {
      title: "事件实体",
        breadcrumb: []
    },
    component: () => import( '@/views/smt/entyAttr/entyAttrList.vue' )
  },{
    name: "monit",
      path: "/monit",
      meta: {
      title: "监听器",
        breadcrumb: []
    },
    component: () => import( '@/views/smt/monit/monitList.vue' )
  },{
    name: "actor",
      path: "/actor",
      meta: {
      title: "执行器",
        breadcrumb: []
    },
    component: () => import( '@/views/smt/actor/actorList.vue' )
  },

    ]
  })
  return rs
}
